home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3854 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news.delphi.com!usenet
  2. From: Derek Harmon <stonelight@delphi.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: PCX/GIF loader for C/C++?? POSSIBLE?
  5. Date: Tue, 30 Jan 96 12:49:46 -0500
  6. Organization: Delphi (info@delphi.com email, 800-695-4005 voice)
  7. Message-ID: <BlJpw16.stonelight@delphi.com>
  8. References: <4eijqq$kdh@news.sas.ab.ca>
  9. NNTP-Posting-Host: bos1f.delphi.com
  10. X-To: <bailey@freenet.edmonton.ab.ca>
  11.  
  12. ** Quoting a message from <bailey@freenet.edmonton.ab.ca> dated <29-Jan-1996>:
  13.  
  14. > How would I load and display a PCX/GIF picture with C/C++?? SOmebody help
  15. > me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  16.  
  17.     It certainly is possible. :)  Rather than get into a coding jam session
  18. with you, I'll direct you to a few fine resources.
  19.  
  20.     The display issues are system-dependent [VGA on a PC? Using the Microsoft
  21. Windows' GDI?  XView on a Sun?  Mac?  Jeez.. I don't know anything about
  22. Macs :) ].  You are better off referring that question to a more system-
  23. oriented newsgroup.  The loading and saving is usually straightforward when
  24. you know the file formats you are dealing with.  GIFs include LZW file com-
  25. pression, so that needs to be taken into account (memory size > disk file
  26. length).
  27.  
  28.     For dealing with raster graphics such as PCX or GIF on PC-platforms in
  29. C, any book by Steve Rimmer (author of Graphics Workshop) is highly recom-
  30. mended.  For DOS, check-out _Bitmapped_Graphics_, 2ed., and for Windows, it
  31. is entitled _Windows_Bitmapped_Graphics_.  Publisher is Windcrest.
  32.  
  33.     The definitive reference shelf addition for anyone seriously involved
  34. with graphics, including almost every image file format, is O'Reilly and
  35. Associates' _Encyclopedia_of_Graphics_File_Formats_.
  36.  
  37.     However, online resources are abundant.  For pointers to archives that
  38. hold file specifications for almost every image file format, grab the File
  39. Formats FAQ out of comp.graphics.misc next time it appears, or:
  40.  
  41.     ftp://rtfm.mit.edu/pub/usenet/news.answers/graphics/fileformats-faq
  42.  
  43.     Hope this has been of help,
  44.                                                                 -- Stone
  45. --
  46. ... 11-PDP eht edisni deppart ma I !pleH
  47.